Developer --> Technical Publications
PATHJava Developer Documentation > Mac OS Runtime for Java > MRJToolkit > Programming With MRJToolkit


The MRJPrintDocumentHandler Interface

The com.apple.mrj.MRJPrintDocumentHandler interface contains one method, handlePrintFile , which is called when a user prints a document file from the Finder.


myHandlePrintFile

Handles printing a file.

public void handlePrintFile (File file);
file
The name of the file to be printed.

DISCUSSION

This application-defined method is called when the application receives a request to print a file. For example, this occurs when the user attempts to print a file from the Finder that bears the application's creator. You must register the method name by calling the registerPrintDocumentHandler method registerPrintDocumentHandler when initializing the application. The handlePrintFile method is only useful if you have packaged your Java application using JBindery.

IMPORTANT

Printing is not supported in JDK 1.0.2 and earlier.

SEE ALSO

The registerPrintDocumentHandler method registerPrintDocumentHandler .


© 1998 Apple Computer, Inc. — (Last Updated 10 Dec 98)

Previous | Back Up One Level | Next |